from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
_magic_number = 2
_modified_time = 1212787643.470372
_template_filename='/home/andi/devel/python/pylons/votafam-ng/votafam/votafam/templates/admin.mako'
_template_uri='/admin.mako'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
_exports = ['include_local_javascript', 'include_local_styles']


def render_body(context,**pageargs):
    context.caller_stack.push_frame()
    try:
        __M_locals = dict(pageargs=pageargs)
        h = context.get('h', UNDEFINED)
        c = context.get('c', UNDEFINED)
        self = context.get('self', UNDEFINED)
        # SOURCE LINE 2
        context.write(u'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<html>\r\n<head>\n<!-- <base href=\'')
        # SOURCE LINE 5
        context.write(unicode(c.base_ref))
        context.write(u'/\'></base> -->\r\n<meta http-equiv="content-type" content="text/html; charset=UTF-8" />\r\n\n<title>VotaFAM - Admin</title>\n')
        # SOURCE LINE 9
        context.write(unicode(h.stylesheet_link_tag('/css/votafam.css')))
        context.write(u'\n')
        # SOURCE LINE 10
        context.write(unicode(self.include_local_styles()))
        context.write(u'\n<script type="text/javascript">ajax_url_base = "')
        # SOURCE LINE 11
        context.write(unicode(h.url_for(controller='ajax',action=None,id=None)))
        context.write(u'";</script>\r\n')
        # SOURCE LINE 12
        context.write(unicode(h.javascript_include_tag('/js/json.js','/js/yui/utilities.js','/js/votafam.js','/js/ajax.js')))
        context.write(u'\n')
        # SOURCE LINE 13
        context.write(unicode(self.include_local_javascript()))
        context.write(u'\n</head>\r\n<body>\n<div id="root">\n <div id="header">\n <h1>VotaFAM</h1>\n Sistema de vota&ccedil;&atilde;o do FAM\n')
        # SOURCE LINE 20
        if c.alert_message:
            # SOURCE LINE 21
            context.write(u'<div class="alert-box">')
            context.write(unicode(c.alert_message))
            context.write(u'</div>\n')
        # SOURCE LINE 23
        if c.form_errors:
            # SOURCE LINE 24
            context.write(u'<div class="field-error-box">\n  <ul>\n')
            # SOURCE LINE 26
            for field_error in c.form_errors:
                # SOURCE LINE 27
                context.write(u'        <li>')
                context.write(unicode(c.form_errors[field_error]))
                context.write(u'</li>\n')
            # SOURCE LINE 29
            context.write(u'  </ul>\n</div>\n')
        # SOURCE LINE 32
        context.write(u'\n </div>\n <div id="primary-menu">\n  <ul>\n   <li><a href="')
        # SOURCE LINE 36
        context.write(unicode(h.url_for(controller='mostras',action='index',id=None)))
        context.write(u'">Mostras</a></li>\n   <li><a href="')
        # SOURCE LINE 37
        context.write(unicode(h.url_for(controller='candidatos',action='index',id=None)))
        context.write(u'">Candidatos</a></li>\n   <li><a href="')
        # SOURCE LINE 38
        context.write(unicode(h.url_for(controller='votacao',action='index',id=None)))
        context.write(u'">Vota&ccedil;&otilde;es</a></li>\n   <li><a href="')
        # SOURCE LINE 39
        context.write(unicode(h.url_for(controller='apuracao',action='index',id=None)))
        context.write(u'">Apura&ccedil;&atilde;o</a></li>\n   <li><a href="')
        # SOURCE LINE 40
        context.write(unicode(h.url_for(controller='login',action='logout',id=None)))
        context.write(u'">Sair</a></li>\n  </ul>\n </div>\n <div id="content" class="yui-skin-sam">')
        # SOURCE LINE 43
        context.write(unicode(self.body()))
        context.write(u'</div>\r\n <div id="footer"></div>\n</div>\n</body>\n</html>\n\n')
        # SOURCE LINE 49
        context.write(u'\n')
        # SOURCE LINE 50
        context.write(u'\n')
        return ''
    finally:
        context.caller_stack.pop_frame()


def render_include_local_javascript(context):
    context.caller_stack.push_frame()
    try:
        return ''
    finally:
        context.caller_stack.pop_frame()


def render_include_local_styles(context):
    context.caller_stack.push_frame()
    try:
        return ''
    finally:
        context.caller_stack.pop_frame()


